package cn.pb.domin;

public class QueryInfo {

	private int currentPage = 1;// 用户想看的页码
	private int pageSize = 3;
	private int startIndex;

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getStartIndex() {
		this.startIndex = (currentPage - 1) * pageSize;
		return startIndex;
	}
}
